import React from 'react'
import Lottie404 from '@/components/Lottie404'
import { Button } from 'antd'
import { Card, Space } from 'antd'

export default function NotFound() {
    const notFoundStyle: React.CSSProperties = {
        textAlign: 'center',
        display: 'flex',
        flexDirection: 'column',
        alignItems: 'center',
        justifyContent: 'center',
        marginTop: 60,
    }
    function backHome() {
        window.location.href = '/'
    }
    return (
        <div style={notFoundStyle}>
            <div className="flex flex-row items-center gap-4">
                <Lottie404 />
                <div>
                    <Space
                        direction="vertical"
                        size="large"
                        style={{ display: 'flex' }}
                    >
                        <h4 className="text-3xl">404</h4>
                        <p>抱歉，您访问的页面不存在</p>
                        <Button type="primary" onClick={backHome}>
                            返回首页
                        </Button>
                    </Space>
                </div>
            </div>
        </div>
    )
}
